﻿using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MobileWebsiteGenerator.Entities;

namespace MobileWebsiteGenerator.Mapping
{
public class MetaTagMap : EntityTypeConfiguration<Metatag>
    {
        public MetaTagMap()
		{
			// Primary Key

            this.HasKey(t => t.MetaID);
			// Properties
			// Table & Column Mappings
			this.ToTable("Metatags");
            this.Property(t => t.MetaID).HasColumnName("MetaID");
            this.Property(t => t.KeyWords).HasColumnName("KeyWords");
            this.Property(t => t.Description).HasColumnName("Description");
		}
    }
}